public class dog {
    //变量
    public String name;
    public int age;
    public String brand;//品种

    //方法
    public void eat(){
        System.out.println(name+"吃饭");
    }
    public void leep(){
        System.out.println(name+"睡觉");
    }
    public void walk(){
        System.out.println(name+"犬吠");
    }
}
